package com.sxy.anli.mapper;

import com.sxy.anli.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
public interface UserMapper {
    /**
     * 登录功能，判断用户名密码是否存在
     */
    @Select("select * from tb_user where username = #{username} and password = #{password}")
    User select(@Param("username") String username, @Param("password") String password);
}
